package com.sh.learn.itcast.javaadvanced.aop;

import java.lang.reflect.Method;

public interface Advice {

	/**
	 * 方法前
	 */
	public void beforeMethod(Object target, Method method, Object[] args);
	
	/**
	 * 方法后
	 */
	public void afterMethod(Object target, Method method, Object[] args);
	
	/**
	 * 方法前后
	 */
	
	/**
	 * 方法异常
	 */
	public void catchException(Object target, Method method, Object[] args, Exception e);
}
